var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(t, e) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(t, e) {
        t.__proto__ = e;
    } || function(t, e) {
        for (var o in e) e.hasOwnProperty(o) && (t[o] = e[o]);
    })(t, e);
}, function(t, e) {
    function n() {
        this.constructor = t;
    }
    o(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, 
    new n());
}), a = this && this.__decorate || function(t, e, o, n) {
    var r, c = arguments.length, i = c < 3 ? e : null === n ? n = Object.getOwnPropertyDescriptor(e, o) : n;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) i = Reflect.decorate(t, e, o, n); else for (var l = t.length - 1; 0 <= l; l--) (r = t[l]) && (i = (c < 3 ? r(i) : 3 < c ? r(e, o, i) : r(e, o)) || i);
    return 3 < c && i && Object.defineProperty(e, o, i), i;
};

Object.defineProperty(n, "__esModule", {
    value: !0
});

var r = e("MyButton"), s = e("LoadManager"), c = cc._decorator, l = c.ccclass, d = c.property, u = function(e) {
    function t() {
        var t = null !== e && e.apply(this, arguments) || this;
        return t.title = "", t.content = "", t.myButton = null, t.lock = null, t.unlock = null, 
        t.new = null, t.titleLabel = null, t.eggsSprite = null, t;
    }
    return i(t, e), t.prototype.start = function() {}, t.prototype.init = function(t, e) {
        this.title = t, this.content = e, this.lock.active = !1, this.unlock.active = !0, 
        this.titleLabel.string = this.title, s.default.getInstance().loadSpriteFrame({
            url: "image/eggs/彩蛋墙" + this.title + "@2x",
            sprite: this.eggsSprite
        });
    }, a([ d(r.default) ], t.prototype, "myButton", void 0), a([ d(cc.Node) ], t.prototype, "lock", void 0), 
    a([ d(cc.Node) ], t.prototype, "unlock", void 0), a([ d(cc.Node) ], t.prototype, "new", void 0), 
    a([ d(cc.Label) ], t.prototype, "titleLabel", void 0), a([ d(cc.Sprite) ], t.prototype, "eggsSprite", void 0), 
    a([ l ], t);
}(cc.Component);

n.default = u;